<?php

//找不到类时才会调用这个方法
spl_autoload_register("autoload", true, true);
//自定义类加载
function autoload($className=""){
    echo "类名: ".$className.PHP_EOL;
    include "./{$className}.php";
}

$p = new Person();
$p->say();


